<?php
$controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();

$countryModel = new M_Country();
$listCountry  = $countryModel->listCountry()->query()->fetchAll();
?>
<ul>
	<li>
		<a href="/home" <?php echo ($controllerName == 'home')? "class='active'" : "" ;?>><?php echo $this->translate('Home'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/destination" <?php echo ($controllerName == 'destination' || $controllerName == 'tour')? "class='active'" : "" ;?>><?php echo $this->translate('Destination'); ?></a>
		<?php if($listCountry): ?>
    		<ul class="menu_2">
                <?php foreach($listCountry as $k => $v): ?>
        			<li><a href="<?php echo '/destination/'. $v['id'] . '/'.str_replace(' ', '-' ,trim($v['name'])) .'.html';?>"><?php echo $v['name']; ?></a></li>
            	<?php endforeach; ?>
    		</ul>
    	<?php endif; ?>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/hotel" <?php echo ($controllerName == 'tour')? "class='active'" : "" ;?>><?php echo $this->translate('Tour_package'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/hotel" <?php echo ($controllerName == 'hotel')? "class='active'" : "" ;?>><?php echo $this->translate('Hotel_&_Resort'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/article/visa" <?php echo ($controllerName == 'article' && $actionName == 'visa')? "class='active'" : "" ;?>><?php echo $this->translate('Visa_&_Ticket'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/promotion" <?php echo ($controllerName == 'promotion')? "class='active'" : "" ;?>><?php echo $this->translate('Promotion'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="#" <?php echo ($controllerName == 'MICE')? "class='active'" : "" ;?>><?php echo $this->translate('MICE'); ?></a>
		<ul class="menu_2">
			<li>
				<a href="/mice/general"><?php echo $this->translate('General_Information'); ?></a>
				<ul class="menu_3">
					<li>
						<a href="/mice/general"><?php echo $this->translate('General_Information'); ?>
						</a>
					</li>
					<li><a href="/mice/meeting-conference"><?php echo $this->translate('Meetings_&_Conferences'); ?></a></li>
					<li><a href="/mice/incentive"><?php echo $this->translate('Incentives'); ?></a></li>
					<li><a href="/mice/event"><?php echo $this->translate('Events'); ?></a></li>
				</ul>
				</li>
			<li><a href="/mice/meeting-conference"><?php echo $this->translate('Meetings_&_Conferences'); ?></a>
				<ul class="menu_3">
					<li>
						<a href="/mice/general"><?php echo $this->translate('General_Information'); ?>
						</a>
					</li>
					<li><a href="/mice/meeting-conference"><?php echo $this->translate('Meetings_&_Conferences'); ?></a></li>
					<li><a href="/mice/incentive"><?php echo $this->translate('Incentives'); ?></a></li>
					<li><a href="/mice/event"><?php echo $this->translate('Events'); ?></a></li>
				</ul>
			</li>
			<li><a href="/mice/incentive"><?php echo $this->translate('Incentives'); ?></a></li>
			<li><a href="/mice/event"><?php echo $this->translate('Events'); ?></a></li>
		</ul>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/contact" <?php echo ($controllerName == 'contact')? "class='active'" : "" ;?>><?php echo $this->translate('Contact_Us'); ?></a>
		<span><img class="spacer" src="/static/default/images/spacer.gif" /></span>
	</li>
	<li>
		<a href="/article/about-us" <?php echo ($controllerName == 'article' && $actionName == 'about-us')? "class='active'" : "" ;?>><?php echo $this->translate('About Us'); ?></a>
	</li>
</ul>